﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:EIA.SLClient.ProjectManage.Financial"
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
	mc:Ignorable="d"
	x:Class="EIA.SLClient.ProjectManage.Financial.ReceiptEditView"
	d:DesignWidth="600" d:DesignHeight="480">
	<UserControl.Resources>
		<local:ReceiptEditViewModel x:Key="ReceiptEditViewModelDataSource" />
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource ReceiptEditViewModelDataSource}}">
        <Grid Background="#19000000" Visibility="{Binding IsShow, Converter={StaticResource Bool2VisibilityConverter}, Mode=TwoWay}">
        	<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="248" Height="224" Background="#FFEBEBEB">
        		<Grid.ColumnDefinitions>
        			<ColumnDefinition Width="80"/>
        			<ColumnDefinition/>
        		</Grid.ColumnDefinitions>
        		<Grid.RowDefinitions>
        			<RowDefinition Height="24"/>
        			<RowDefinition Height="Auto" MinHeight="32"/>
        			<RowDefinition Height="Auto" MinHeight="32"/>
        			<RowDefinition Height="Auto" MinHeight="32"/>
        			<RowDefinition Height="Auto" MinHeight="32"/>
        			<RowDefinition Height="40"/>
        		</Grid.RowDefinitions>
        		<Grid Background="#FF888888" Grid.ColumnSpan="2">
        			<TextBlock HorizontalAlignment="Left" Margin="8,0,0,0" TextWrapping="Wrap" Text="{Binding TitleTip}" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
        		</Grid>
        		<TextBlock Margin="0" Grid.Row="1" TextWrapping="Wrap" Text="开票号码" d:LayoutOverrides="Height" HorizontalAlignment="Right" VerticalAlignment="Center"/>
        		<TextBlock Margin="0" Grid.Row="2" TextWrapping="Wrap" Text="到款方式" HorizontalAlignment="Right" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
        		<TextBlock Margin="0" Grid.Row="3" TextWrapping="Wrap" Text="到款金额" HorizontalAlignment="Right" VerticalAlignment="Center"/>
        		<TextBlock Margin="0,8" Grid.Row="4" TextWrapping="Wrap" Text="到款时间" HorizontalAlignment="Right" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
        		<TextBox Grid.Column="1" Margin="8,8,0,8" Grid.Row="1" TextWrapping="Wrap" VerticalAlignment="Center" Width="90" HorizontalAlignment="Left" Text="{Binding Model.InvoiceNo, Mode=TwoWay}" IsReadOnly="True"/>
        		<ComboBox ItemsSource="{Binding DKFSCollection, Source={StaticResource ListsResource}}" Grid.Column="1" Margin="8,8,0,8" Grid.Row="2" VerticalAlignment="Center" DisplayMemberPath="DicIname" HorizontalAlignment="Left" Width="90" SelectedItem="{Binding ReceiptWay, Mode=TwoWay}"/>
        		<TextBox Grid.Column="1" Margin="8,8,0,8" Grid.Row="3" TextWrapping="Wrap" Width="54" HorizontalAlignment="Left" d:LayoutOverrides="HorizontalAlignment, Height" Text="{Binding Model.ReceiptAmount, Mode=TwoWay}"/>
        		<sdk:DatePicker Grid.Column="1" Grid.Row="4" HorizontalAlignment="Left" Margin="8,8,0,8" Width="120" d:LayoutOverrides="Height" SelectedDate="{Binding Model.ReceiptDate, Mode=TwoWay}" />
        		<HyperlinkButton Content="取消" Grid.Column="1" Grid.Row="5" HorizontalAlignment="Right" Margin="0,12,18,12" Command="{Binding CancelCommand}" d:LayoutOverrides="Height, GridBox"/>
        		<HyperlinkButton Content="确定" Grid.Column="1" Grid.Row="5" Margin="0,12,70,12" HorizontalAlignment="Right" Command="{Binding SaveCommand}" d:LayoutOverrides="Height, GridBox"/>
        		<TextBlock Grid.Column="1" Margin="66,12,0,12" Grid.Row="3" TextWrapping="Wrap" Text="(万元)" d:LayoutOverrides="Height" HorizontalAlignment="Left"/>
        	</Grid>
		</Grid>
	</Grid>
</UserControl>
